<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%sys_card}}".
 *
 * @property integer $id
 * @property integer $uid
 * @property string $accountname
 * @property string $bank
 * @property string $cardnumber
 * @property integer $create_time
 * @property integer $status
 */
class SysCard extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sys_card}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['uid', 'create_time', 'status'], 'integer'],
            [['accountname'], 'string', 'max' => 20],
            [['bank', 'cardnumber'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'accountname' => 'Accountname',
            'bank' => 'Bank',
            'cardnumber' => 'Cardnumber',
            'create_time' => 'Create Time',
            'status' => 'Status',
        ];
    }
}
